package com.example.springbootdemo;

public class Person {
    private String name;
    private int id;
    private Integer age;

    public Person() {
    }

    public Person(String name, int id, Integer age) {
        this.name = name;
        this.id = id;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{id=" + id + ", name='" + name + "', age='" + age + "'}";
    }
}
